#!/usr/bin/env python
import os

def place(file):
	settingFile = open(file,'r');
	txt = settingFile.read();
	CURRENT_PATH = os.getcwd()
	txt = txt.replace('###ROOT###',CURRENT_PATH)
	writeFileName = file[:file.find('_')]
	settingFile = open(writeFileName,'w')
	settingFile.write(txt)
	settingFile.close()
place('settings.py_template')
place('urls.py_template')

